/* 登录 */
body {
    height: 1200px;
}

nav {
    background-color: rgb(51, 51, 51);
}

.xtxLogin ul {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: flex-end;
}

.xtxLogin li {
    padding: 0 20px;
    cursor: pointer;
    align-self: center;
    border-right: 2px solid rgb(102, 102, 102);
}

.xtxLogin li a:hover {
    color: rgb(39, 186, 155);
}

.xtxLogin li a {
    color: rgb(205, 205, 195);
}

.xtxLogin li:last-child {
    color: rgb(205, 205, 195);
}

.xtxLogin li:last-child:hover {
    color: rgb(39, 186, 155);
}

/* 首页 */
.roof {
    background-color: #fff;
    height: 140px;
}

.xtxHomepage {
    margin-top: 20px;
}

.xtxHomepage .page {
    position: relative;
    display: flex;
}

.xtxHomepage .page .topLogo {
    width: 200px;
}

.xtxHomepage .page .topLogo img {
    height: 130px;
}

.xtxHomepage .page div:nth-child(2) ul {
    width: 800px;
    line-height: 130px;
    font-size: 16px;
    display: flex;
    justify-content: space-around;
}

.disabled .shoppingTop {
    margin-left: 20px;
}

.xtxHomepage .page div:nth-child(2) ul a.active {
    color: rgb(39, 186, 155);
    border-bottom: 1px solid rgb(39, 186, 155);
    padding-bottom: 10px;
}

.disabled {
    box-sizing: border-box;
    margin: 40px auto;
    width: 200px;
    height: 40px;
    position: relative;
}

.xtxHomepage .page .search {
    position: relative;
}

.xtxHomepage .page .search input {
    border: 0;
    border-bottom: 1px solid rgb(231, 231, 231);
    width: 140px;
    margin-left: 10px;
    padding-left: 20px;
}

.xtxHomepage .page .search i {
    font-size: 22px;
    position: absolute;
    top: -3px;
    right: 170px;
}


.xtxHomepage .font {
    position: absolute;
    top: -1px;
    right: 7px;

}

.xtxHomepage .font i {
    font-size: 20px;
}



.xtxHomepage .page .font em {
    font-style: normal;
    position: absolute;
    right: -12px;
    top: -2px;
    padding: 1px 6px;
    line-height: 1;
    background-color: #e26237;
    color: #fff;
    font-size: 12px;
    border-radius: 10px;
    font-family: Arial;
}




.xtxHomepage .triangle {
    position: absolute;
    top: -20px;
    right: 20px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-bottom: 10px solid white;
}

.xtxHomepage .box {
    display: none;
    transition: all .4s .2s;
    width: 400px;
    height: 400px;
    box-shadow: 0 0 10px rgb(0 0 0 / 20%);
    background: #fff;
    border-radius: 4px;
    padding-top: 10px;
    position: absolute;
    right: -1px;
    top: 38px;
    z-index: 1100;
    /* 把他的层级调低 */
    box-sizing: border-box;
}

.box .list {
    height: 310px;
    overflow: auto;
    padding: 0 10px;
}

.box .item {
    border-bottom: 1px solid #f5f5f5;
    padding: 10px 0;
    position: relative;
}

.box .item a {
    display: flex;
    align-items: center;
}

.box .item  a img {
    width: 80px;
    height: 80px;
}

.box .list .item  i {
    position: absolute;
    bottom: 38px;
    right: 0;
    opacity: 0;
    color: #666;
    transition: all .5s;
    font-size: 12px;
    cursor: pointer;
}

.box .list .item:hover i {
    opacity: 1;
    transition: all .5s;
}

.box .center {
    padding: 0 10px;
    width: 200px;
}

.box .center .name {
    font-size: 16px;
}

.box .center .attr {
    color: #999;
    padding-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.box .right .price {
    font-size: 16px;
    color: #cf4444;
}

.box .right .count {
    color: #999;
    margin-top: 5px;
    font-size: 16px;
}

.box .foot {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 70px;
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    background: #f8f8f8;
    align-items: center;
}

.box .total {
    padding-left: 10px;
    color: #999;
}

.box .total .price {
    font-size: 18px;
    color: #cf4444;
}

.box button {
    width: 180px;
    height: 50px;
    font-size: 16px;
    border: none;
    border: 1px solid #27ba9b;
    color: #27ba9b;
    background: #e6faf6;
    border-radius: 4px;
    cursor: pointer;
}

.xtxHomepage ul {
    position: relative;
}

.xtxBanner .layer {
    width: 1002px;
    height: 500px;
    background: hsla(0, 0%, 100%, .8);
    position: absolute;
    left: 214px;
    top: 0;
    opacity: 0;
    padding: 0 15px;
    z-index: 999;
}

.xtxBanner .layer h4 {
    font-size: 20px;
    font-weight: 400;
    line-height: 80px;
}

.xtxBanner .layer span {
    font-size: 16px;
    color: #666;
}

.xtxBanner .layer ul {
    display: flex;
    flex-wrap: wrap;
}

.xtxBanner .layer li {
    width: 297px;
    height: 120px;
    margin-right: 15px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
}

.xtxBanner .goods-item a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    padding: 10px;
    justify-content: space-evenly;
}

.xtxBanner .goods-item li:hover {
    background-color: #e3f9f4;
}

.xtxBanner .goods-item img {
    width: 100%;
    height: 100%;
    vertical-align: middle;
    object-fit: contain;
}

.xtxBanner .info {
    padding-left: 10px;
    line-height: 24px;
    width: 190px;
}

.xtxBanner .info .name {
    font-size: 16px;
    color: #666;

}

.xtxBanner .info .desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
}

.xtxBanner .info .price {
    font-size: 22px;
    color: #cf4444;
}

.xtxBanner .info .price i {
    font-size: 16px;
}

/*   隐藏首页 */
.xtxPage {
    width: 100%;
    height: 80px;
    position: fixed;
    left: 0;
    top: -90px;
    z-index: 999;
    background-color: #fff;
    border-bottom: 1px solid #e4e4e4;
    transform: translateY(-100%);
    opacity: 0;
    transition: all .3s linear;
    transform: none;
}

.xthShow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 10px;

}

.xthShow div:first-child {
    width: 200px;
}

.xthShow div:first-child img {
    display: block;
    width: 150px;
    height: 70px;
    object-fit: contain;
}

.xthShow ul {
    width: 850px;
    display: flex;
    justify-content: space-around;
    /* padding-left: 40px; */
    position: relative;
    z-index: 999;
}

.xthShow ul li {
    margin-right: 40px;
    width: 38px;
    text-align: center;
}

.xthShow .right {
    width: 220px;
    display: flex;
    text-align: center;
    border-left: 2px solid #27ba9b;
}

.xthShow .right a:hover {
    color: #27ba9b;
}

.xthShow .right a {
    margin-left: 20px;
}

.xtxPage ul a.active {
    color: rgb(39, 186, 155);
    border-bottom: 1px solid rgb(39, 186, 155);
    padding-bottom: 10px;
}